import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [{
  path:"/",
  redirect:"/About"
},
  {
    path: '/home',
    name: 'Home',
    component: Home,
    children:[
      {
        path: '/about',
        name: 'About',
        component: () => import(/* webpackChunkName: "about" */ '../views/About/About.vue')
      },{
        path: '/list',
        name: 'List',
        component: () => import(/* webpackChunkName: "about" */ '../views/List/List.vue')
      },{
        path: '/my',
        name: 'My',
        component: () => import(/* webpackChunkName: "about" */ '../views/My/My.vue')
      },{
        path: '/mye',
        name: 'Mye',
        component: () => import(/* webpackChunkName: "about" */ '../views/My/Mye.vue')
      },{
        path: '/ditu',
        name: 'Ditu',
        component: () => import(/* webpackChunkName: "about" */ '../views/Ditu/Ditu.vue')
      },
    ]
  },{
    path: '/shop',
    name: 'Shop',
    component: () => import(/* webpackChunkName: "about" */ '../views/Shop/Shop.vue')
  },{
    path: '/login',
    name: 'Login',
    component: () => import(/* webpackChunkName: "about" */ '../views/Login/Login.vue')
  }, 
  {
    path: '/citylist',
    name: 'Citylist',
    component: () => import(/* webpackChunkName: "about" */ '../views/City/Citylist.vue')
  },  {
    path: '/deail',
    name: 'Deail',
    component: () => import(/* webpackChunkName: "about" */ '../views/Deail/Deail.vue')
  }, {
    path: '/chuzu',
    name: 'Chuzu',
    component: () => import(/* webpackChunkName: "about" */ '../views/Chuzu/Chuzu.vue')
  },
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
